package com.example.demo.entiy;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.data.annotation.Id;

@Getter
@Setter
@ToString
public class Message {

    @Id
    private Long id;

    private String sender;

    private String receiver;

    private String context;

    public Message() {
    }

    public Message(Long id, String sender, String receiver, String context) {
        this.id = id;
        this.sender = sender;
        this.receiver = receiver;
        this.context = context;
    }
}
